package com.wanmait.schedule.service.impl;

import com.wanmait.schedule.entity.Course;
import com.wanmait.schedule.mapper.CourseMapper;
import com.wanmait.schedule.service.CourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 全部课程表 服务实现类
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public List<Course> findAll() {
        return courseMapper.list();
    }

    @Override
    public int findCount(Integer id) {
        return courseMapper.findCount(id);
    }
}
